package replicaset

import (
	"kms-backend/controllers/replicaset"

	"github.com/gin-gonic/gin"
)

func detail(replicasetGroup *gin.RouterGroup) {
	replicasetGroup.GET("/detail", replicaset.Detail)
}

func list(replicasetGroup *gin.RouterGroup) {
	replicasetGroup.GET("/list", replicaset.List)
}

func RegisterSubRouter(g *gin.RouterGroup) {
	// 配置路由策略
	replicasetGroup := g.Group("/replicaset")
	detail(replicasetGroup)
	list(replicasetGroup)

}
